module(
    name = "rules_web_testing_python",
    version = "0.4.0",
)

bazel_dep(
    name = "bazel_skylib",
    version = "1.7.1",
)

bazel_dep(
    name = "rules_webtesting",
)

local_path_override(
    module_name = "rules_webtesting",
    path = "..",
)

bazel_dep(
    name = "rules_python",
    version = "1.0.0",
)

python = use_extension("@rules_python//python/extensions:python.bzl", "python")

python.toolchain(
    is_default = True,
    python_version = "3.11",
)

use_repo(python, "python_3_11", "python_versions")

pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")

pip.parse(
    hub_name = "rules_webtesting_py_deps",
    python_version = "3.11",
    requirements_lock = "//:requirements_lock.txt",
    requirements_windows = "requirements_lock_windows.txt",
)

use_repo(pip, "rules_webtesting_py_deps")
